package agentspeakeditor.editors.common.AST;

import java.util.ArrayList;

import agentspeakeditor.editors.common.AST.Line.Line;
import agentspeakeditor.editors.common.checker.SemanticException;
import agentspeakeditor.editors.common.checker.Visitor;

public class Program extends AST{
	private ArrayList<Line> lines;

	public ArrayList<Line> getLines() {
		return lines;
	}

	public void setLines(ArrayList<Line> lines) {
		this.lines = lines;
	}

	public Program(Program p) {
		super();
		this.setLines(p.getLines());
	}
	
	public Program() {
		super();
		setLines(new ArrayList<Line>());
	}

	@Override
	public String toString(int level) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object visit(Visitor v, Object arg) throws SemanticException{
		// TODO Auto-generated method stub
		return v.visitProgram(this, arg);
	}
	
	
}
